<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>会员 - 外卖APP</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">
    <style>
        :root {
            --primary-color: #FFD700;
            --secondary-color: #FFA500;
            --text-primary: #1f2937;
            --text-secondary: #4b5563;
            --background-light: #f8fafc;
        }

        body {
            margin: 0;
            padding: 0;
            background: #f5f5f5;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        }

        .phone-container {
            width: 390px;
            height: 844px;
            margin: 20px auto;
            background: white;
            position: relative;
            overflow: hidden;
            box-shadow: 0 0 20px rgba(0,0,0,0.1);
            border-radius: 40px;
        }

        .content {
            height: calc(100% - 70px);
            overflow-y: auto;
            background: var(--background-light);
        }

        .content::-webkit-scrollbar {
            width: 0;
        }

        .bottom-nav {
            position: absolute;
            bottom: 0;
            width: 100%;
            height: 70px;
            background: white;
            display: flex;
            justify-content: space-around;
            align-items: center;
            border-top: 1px solid #eee;
        }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #666;
            text-decoration: none;
            font-size: 12px;
        }

        .nav-item.active {
            color: var(--secondary-color);
        }

        .nav-item i {
            font-size: 24px;
            margin-bottom: 4px;
        }

        .header {
            padding: 20px;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .header h1 {
            margin: 0;
            font-size: 18px;
            text-align: center;
            margin-bottom: 15px;
        }

        .vip-card {
            background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
            border-radius: 16px;
            padding: 20px;
            color: #FFD700;
            margin-top: 15px;
        }

        .vip-level {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 15px;
        }

        .level-name {
            font-size: 24px;
            font-weight: 600;
        }

        .level-icon {
            font-size: 32px;
        }

        .vip-info {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-top: 30px;
        }

        .points {
            font-size: 14px;
            opacity: 0.8;
        }

        .points-number {
            font-size: 24px;
            font-weight: 600;
            margin-top: 5px;
        }

        .upgrade-progress {
            flex: 1;
            margin: 0 15px;
        }

        .progress-bar {
            height: 4px;
            background: rgba(255,255,255,0.2);
            border-radius: 2px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            width: 60%;
            background: #FFD700;
        }

        .progress-text {
            font-size: 12px;
            margin-top: 5px;
            text-align: right;
        }

        .benefits-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
            padding: 20px;
        }

        .benefit-item {
            background: white;
            border-radius: 12px;
            padding: 15px 10px;
            text-align: center;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }

        .benefit-icon {
            width: 40px;
            height: 40px;
            background: var(--background-light);
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 8px;
            color: var(--secondary-color);
        }

        .benefit-name {
            font-size: 12px;
            color: var(--text-primary);
        }

        .section-title {
            padding: 20px 20px 10px;
            font-size: 16px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .coupon-list {
            padding: 0 20px;
        }

        .coupon-card {
            background: white;
            border-radius: 12px;
            margin-bottom: 15px;
            display: flex;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }

        .coupon-left {
            background: var(--secondary-color);
            color: white;
            padding: 15px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            min-width: 100px;
        }

        .coupon-amount {
            font-size: 24px;
            font-weight: 600;
        }

        .coupon-type {
            font-size: 12px;
            opacity: 0.8;
        }

        .coupon-right {
            padding: 15px;
            flex: 1;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .coupon-info h3 {
            font-size: 14px;
            margin: 0 0 5px;
            color: var(--text-primary);
        }

        .coupon-info p {
            font-size: 12px;
            color: var(--text-secondary);
            margin: 0;
        }

        .coupon-btn {
            padding: 6px 12px;
            border-radius: 16px;
            background: var(--secondary-color);
            color: white;
            border: none;
            font-size: 12px;
        }

        .task-list {
            padding: 0 20px 20px;
        }

        .task-item {
            background: white;
            border-radius: 12px;
            padding: 15px;
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }

        .task-icon {
            width: 40px;
            height: 40px;
            background: var(--background-light);
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--secondary-color);
            margin-right: 12px;
        }

        .task-info {
            flex: 1;
        }

        .task-name {
            font-size: 14px;
            color: var(--text-primary);
            margin-bottom: 4px;
        }

        .task-desc {
            font-size: 12px;
            color: var(--text-secondary);
        }

        .task-points {
            background: var(--background-light);
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 12px;
            color: var(--secondary-color);
        }
    </style>
</head>
<body>
    <div class="phone-container">
        <div class="content">
            <div class="header">
                <h1>会员中心</h1>
                <div class="vip-card">
                    <div class="vip-level">
                        <div class="level-name">黄金会员</div>
                        <i class="bi bi-star-fill level-icon"></i>
                    </div>
                    <div class="vip-info">
                        <div class="points">
                            <div>当前积分</div>
                            <div class="points-number">2,580</div>
                        </div>
                        <div class="upgrade-progress">
                            <div class="progress-bar">
                                <div class="progress-fill"></div>
                            </div>
                            <div class="progress-text">距离升级还需1,420积分</div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="benefits-grid">
                <div class="benefit-item">
                    <div class="benefit-icon">
                        <i class="bi bi-lightning-charge"></i>
                    </div>
                    <div class="benefit-name">专享折扣</div>
                </div>
                <div class="benefit-item">
                    <div class="benefit-icon">
                        <i class="bi bi-gift"></i>
                    </div>
                    <div class="benefit-name">生日礼包</div>
                </div>
                <div class="benefit-item">
                    <div class="benefit-icon">
                        <i class="bi bi-truck"></i>
                    </div>
                    <div class="benefit-name">免费配送</div>
                </div>
                <div class="benefit-item">
                    <div class="benefit-icon">
                        <i class="bi bi-headset"></i>
                    </div>
                    <div class="benefit-name">优先客服</div>
                </div>
            </div>

            <div class="section-title">专享优惠券</div>
            <div class="coupon-list">
                <div class="coupon-card">
                    <div class="coupon-left">
                        <div class="coupon-amount">¥30</div>
                        <div class="coupon-type">无门槛</div>
                    </div>
                    <div class="coupon-right">
                        <div class="coupon-info">
                            <h3>新人专享券</h3>
                            <p>有效期至2024-02-20</p>
                        </div>
                        <button class="coupon-btn">立即领取</button>
                    </div>
                </div>
                <div class="coupon-card">
                    <div class="coupon-left">
                        <div class="coupon-amount">¥50</div>
                        <div class="coupon-type">满200可用</div>
                    </div>
                    <div class="coupon-right">
                        <div class="coupon-info">
                            <h3>会员专享券</h3>
                            <p>有效期至2024-02-20</p>
                        </div>
                        <button class="coupon-btn">立即领取</button>
                    </div>
                </div>
            </div>

            <div class="section-title">每日任务</div>
            <div class="task-list">
                <div class="task-item">
                    <div class="task-icon">
                        <i class="bi bi-bag-check"></i>
                    </div>
                    <div class="task-info">
                        <div class="task-name">完成首单</div>
                        <div class="task-desc">完成一笔订单即可获得积分奖励</div>
                    </div>
                    <div class="task-points">+50积分</div>
                </div>
                <div class="task-item">
                    <div class="task-icon">
                        <i class="bi bi-star"></i>
                    </div>
                    <div class="task-info">
                        <div class="task-name">评价订单</div>
                        <div class="task-desc">对已完成的订单进行评价</div>
                    </div>
                    <div class="task-points">+30积分</div>
                </div>
                <div class="task-item">
                    <div class="task-icon">
                        <i class="bi bi-share"></i>
                    </div>
                    <div class="task-info">
                        <div class="task-name">分享商家</div>
                        <div class="task-desc">分享喜欢的商家给好友</div>
                    </div>
                    <div class="task-points">+20积分</div>
                </div>
            </div>
        </div>

        <div class="bottom-nav">
            <a href="index.html" class="nav-item">
                <i class="bi bi-house"></i>
                <span>首页</span>
            </a>
            <a href="order.html" class="nav-item">
                <i class="bi bi-receipt"></i>
                <span>订单</span>
            </a>
            <a href="vip.html" class="nav-item active">
                <i class="bi bi-star"></i>
                <span>会员</span>
            </a>
            <a href="user.html" class="nav-item">
                <i class="bi bi-person"></i>
                <span>我的</span>
            </a>
        </div>
    </div>
</body>
</html>
